treemodelsort: destroy the root only if we are removing the latest row of the level
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 25 Apr 2013 14:30:12 +0000 (16:30 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 3 May 2013 11:06:08 +0000 (13:06 +0200)
commitc15a7877e9725d104f1d22a9a264048aa044e282
tree04df7ab56dc6fd062d72a917775ae0f47af5c21f
parent2b6c6845695dee22035cd8b8b609ad26179c838e
treemodelsort: destroy the root only if we are removing the latest row of the level

GtkIconView doesn't ref the rows of the model so we have to make sure that a
level is actually empty before destroying it.

https://bugzilla.gnome.org/show_bug.cgi?id=698846
gtk/gtktreemodelsort.c
gtk/tests/sortmodel.c